const mongoose = require('mongoose')

// 用户配置档案模型
const userProfileSchema = new mongoose.Schema(
	{
		userId: {
			type: mongoose.Schema.Types.ObjectId,
			ref: 'User',
			required: true
		},
		preferences: {
			theme: { type: String, default: 'light' },
			notificationEnabled: { type: Boolean, default: true }
		}
	},
	{ timestamps: true }
)

module.exports = mongoose.model('UserProfile', userProfileSchema)
